package com.techstar.ats.status;

import java.util.Set;

public enum StationStatus implements StatusEnumerated {
	IP_STA_STUS_TERM_MODE1(1, "终端模式1"),
	IP_STA_STUS_TERM_MODE2(2, "终端模式2"),
	IP_STA_STUS_TERM_MODE3(4, "终端模式3"),
	IP_STA_STUS_TERM_MODE4(8, "终端模式4"),
	IP_STA_STUS_TERM_MODE5(16, "终端模式5"),
	IP_STA_STUS_TERM_MODE6(32, "终端模式6"),
	IP_STA_STUS_IN_CYCLE1(4096, "自动折返1"),
	IP_STA_STUS_IN_CYCLE2(8192, "自动折返2"),
	IP_STA_STUS_IN_CYCLE3(16384, "自动折返3"),
	IP_STA_STUS_IN_CYCLE4(32768, "自动折返4"),
	IP_STA_STUS_IN_CYCLE5(65536, "自动折返5"),
	IP_STA_STUS_IN_CYCLE6(131072, "自动折返6");

	private final int value;
	private final String literal;

	StationStatus(int value, String literal) {
		this.value = value;
		this.literal = literal;
	}

	@Override
	public int value() {
		return this.value;
	}

	@Override
	public String literal() {
		return this.literal;
	}

	public static Set<StationStatus> valueOf(int mask) {
		return StatusEnumerated.valueOf(StationStatus.class, mask);
	}
}
